//
//  TabbarController.m
//  QQCeHua
//
//  Created by 王磊 on 2017/10/18.
//  Copyright © 2017年 王磊. All rights reserved.
//

#import "TabbarController.h"
#import "ViewController.h"
#import "NavigationController.h"
@interface TabbarController ()

@end

@implementation TabbarController

- (void)viewDidLoad {
    [super viewDidLoad];
    ViewController * vc1 = [[ViewController alloc]init];
    NavigationController * nav1 = [[NavigationController alloc]initWithRootViewController:vc1];
    vc1.title = @"聊天";
    [self addChildViewController:nav1];
    
    ViewController * vc2 = [[ViewController alloc]init];
    NavigationController * nav2 = [[NavigationController alloc]initWithRootViewController:vc2];
    vc2.title = @"通讯录";
    vc2.view.backgroundColor = [UIColor cyanColor];
    [self addChildViewController:nav2];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
